package com.hd.sup.modules.alarm.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.sup.modules.alarm.mapper.AlarmRuleMapper;
import com.hd.sup.modules.alarm.model.AlarmRule;
import com.hd.sup.modules.alarm.service.IAlarmRuleService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chentl123
 * @since 2021-01-07
 */
@Service
public class AlarmRuleServiceImpl extends ServiceImpl<AlarmRuleMapper, AlarmRule> implements IAlarmRuleService {
    @Override
    public List<AlarmRule> getAlarmRuleList(List<String> vehicleIds) {
        return this.baseMapper.getAlarmRuleList(vehicleIds);
    }

    @Override
    public List<Map<String, Object>> pageList(Page page, AlarmRule alarmRule) {
        return this.baseMapper.pageList(page, alarmRule);
    }
}
